<%@page import="com.mmy.domain.train.TTrainOrder"%> 
<%@page import="com.mmy.domain.train.TTrainPlan"%> 
<%@page import="com.mmy.domain.train.VTrainPlan"%> 
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/include1.jsp"></jsp:include>
<script type="text/javascript" src="js/jsp/front/trainbase/trainPlanIndex.js"></script>
<title>火车票预留信息</title>
</head>
<body>

	<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/FrontHeader.jsp"></jsp:include>
		<div id="index-back">
		<main class="at-padding-large-bottom">
			<article>
				
				<section class="container">
					<div class="information ">
						
							<form >
							<h4 class="info-h4">
								<i class="fa fa-caret-right" aria-hidden="true"></i>新建火车票预留信息
							</h4>

							<div class="input-container  background">		
							<div class="at-float-right" style="width:25%;border:2px solid #1eab3c;height:200px;padding:20px;">
								<h3>总价</h3>
								<label>￥</label><input style="border: 0px;" type="text" id="reservePrice" value="--" readonly></input>
			
							</div>
							
							<div id="showTicket">
							
								<div class="reserveTicket">
								<h3>火车票</h3>
								<table class="info-table" id="standNum">
								<tr >
								<th>标准</th>
								<td>
								<input type="hidden" id="planID"  value="${dbTrainPlan.getPlanID() }" />
								 <input type="text" id="planStandard" value="${dbTrainPlan.getStandard() }" readonly/>  
								 </td>
								 <th>剩余数量</th>
								<td>
								 <input type="text"  value="${dbTrainPlan.getNumber() }" readonly/>  
								  <input type="hidden"  id="planPrice" value="${dbTrainPlan.getPrice() }" readonly/>  
								 </td>
								 <th>数量</th>
								 <td><select  id="planNum" onchange="selectTrainOrderNum()">
								 <option value="0">0</option>
								        <option value="1">1</option>
								        <option value="2">2</option>
								        <option value="3">3</option>
								        <option value="4">4</option>
								        <option value="5">5</option>
								 </select></td>
								</tr>
								</table>
								</div>				
								
						</div>
						<div id="showInfo">	
						</div>
							<center>
				
							<input type="hidden" id="strUserType" value="${tSysUser.getUserType() }" />
							<c:if test="${tSysUser.getUserType()!=0 }">
							<input  type="button" class="btn" value="确定" onclick="saveReserveTrain()" /> 
							</c:if>
								<c:if test="${tSysUser.getUserType()==0 }">
								
								<!-- 要作验证 -->
								<input  type="button" class="btn" value="去支付" onclick="" /> 
								</c:if>
								
									<input type="button"  class="btn" value="取消" onclick="rehidder()" />
								</center>
								</div>
						</form>
					</div>
				</section>
			</article>
		</main>
		</div>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
	</div>
	<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
	
</body>

</html>